﻿<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<jsp:include page="../include/resource-head.jsp"/>
<body>

<jsp:include page="../include/common-top.jsp"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <jsp:include page="../include/common-menu.jsp"/>
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-search">
                            <form role="form" class="form-inline clearfix" id="form" action="">
                                <div class="input-group col-xs-2">
                                    <span class="input-group-addon">球队名字</span>
                                    <input type="text" class="form-control" name="name" value="${name}">
                                </div>
                                <div class="input-group col-xs-2">
                                    <button class="btn btn-sm btn-success" form="form">
                                        <i class="icon-search"></i>搜索
                                    </button>
                                </div>
                            </form>
                        </div>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <td>球队名</td>
                                    <th>教练名</th>
                                    <th>队长名</th>
                                    <th>添加时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <c:forEach items="${pageInfo.list}" var="item">
                                    <tr>
                                        <td>${item.name}</td>
                                        <td>${item.coach}</td>
                                        <td>${item.captain}</td>
                                        <td><fmt:formatDate value="${item.addtime}" pattern="yyyy-MM-dd HH:mm:ss"/> </td>
                                        <td>
                                            <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                                <a class="btn btn-xs btn-primary"
                                                   href="/team/detail-query/${item.id}.do">球员信息</a>
                                            </div>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                            <jsp:include page="../include/table-page.jsp"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<jsp:include page="../include/resource-script.jsp"/>
</html>

